{if $attributes|count > 0} {block name="product_images_attribute_images"} {foreach name=attributes item=attributes_data from=$attributes} {block name="product_images_attribute_images_item"}

{block name="product_images_attribute_images_item_attribute_name"} {$attributes_data.NAME}: {$attributes_data.OPTIONS_NAME} {/block}
  {block name="product_images_attribute_images_item_attribute_image"} {/block}

{/block} {/foreach} {/block} {/if}